// import { produce } from "immer";

// // 定义一个源数据 baseState
// const baseState = [
//   { title: "吃饭", done: false },
//   { title: "睡觉", done: false },
// ];

// // 1. 修改 baseState 第二项数据的 done 设置为true，且不改变源数据
// const newState = produce(baseState, (abcd) => {
//   // 直接对 abcd 做修改
//   abcd[1].done = true;
//   abcd.push({ title: "打豆豆", done: true });
// });

// console.log("baseState", baseState);
// console.log("newState", newState);

import React from "react";
import ReactDOM from "react-dom/client";

import { Provider } from "react-redux";

import store from "./store";

import App from "./App";

ReactDOM.createRoot(document.querySelector("#root") as Element).render(
  <Provider store={store}>
    <App />
  </Provider>
);
